﻿using System.IO;
using USU.MetricsMonitor.Common;
using USU.MetricsMonitor.DiffProvider;
using System;

namespace TestDiffProvider
{
    class Program
    {
        static void Main(string[] args)
        {
            DirectoryInfo dir = new DirectoryInfo(Directory.GetCurrentDirectory());
            
            //string RepositaryPath = "http://metrics-mon.googlecode.com/svn";
            string RepositaryPath = String.Format("file:///{0}/svn-store/TestProject",
               dir.Parent.Parent.Parent.FullName.Replace("\\", "/"));

            string DiffLocalDirectory = dir.Parent.Parent.FullName + @"\RepositDiff\";

            SoftecDiffProvider softecDiffProvider = new SoftecDiffProvider(RepositaryPath, DiffLocalDirectory);
            Stream SoftecResultDiffStream = softecDiffProvider.GetStream(new Revision(1));
            SoftecResultDiffStream.Close();

            SvnDiffProvider svnDiffProvider = new SvnDiffProvider(RepositaryPath, DiffLocalDirectory);
            Stream SvnResultDiffStream = svnDiffProvider.GetStream(new Revision(2));
            SvnResultDiffStream.Close();
        }
    }
}
